From c7e3f5818f210bc404194d093dcd6ca1f377ccd4 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Thu, 27 Apr 2006 09:43:49 +0100 Subject: [PATCH] Just allocate unbound irq only from dynirq range, since pirq range is reserved for physical devices. This saves unnecessary checks on pirq range. Signed-off-by Kevin Tian --- linux-2.6-xen-sparse/drivers/xen/core/evtchn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/linux-2.6-xen-sparse/drivers/xen/core/evtchn.c b/linux-2.6-xen-sparse/drivers/xen/core/evtchn.c index 55b9d4286a..92888ac62a 100644 --- a/linux-2.6-xen-sparse/drivers/xen/core/evtchn.c +++ b/linux-2.6-xen-sparse/drivers/xen/core/evtchn.c @@ -226,7 +226,8 @@ static int find_unbound_irq(void) { int irq; - for (irq = 0; irq < NR_IRQS; irq++) + /* Only allocate from dynirq range */ + for (irq = DYNIRQ_BASE; irq < NR_IRQS; irq++) if (irq_bindcount[irq] == 0) break; -- 2.30.2